package org.qs.webservice.dao.user;


import org.apache.ibatis.annotations.Param;
import org.qs.webservice.domain.UsSubscribeAuto;
import org.springframework.stereotype.Component;
/**
 * 自动订购
 * @author xusaike
 *
 */
@Component
public interface UsSubscribeAutoMapper {
	/**
	 * 设置/取消自动订购
	 * @param user_id
	 * @param book_id
	 * @param status
	 * @return
	 */
	public int updateBookAuto(UsSubscribeAuto usSubscribeAuto);
	/**
	 * 获取是否自动订购
	 * @param user_id
	 * @param book_id
	 * @return
	 */
	public UsSubscribeAuto getUsSubscribeById(@Param("user_id")Long user_id,@Param("book_id")int book_id);
}